import React, {useMemo} from "react";
import {useTranslation} from "react-i18next";
import {GlobalErr} from "../../global/GlobalErr.tsx";

const UnPreview = () => {
    const {t} = useTranslation();

    const renderUnPreview = useMemo(() => {
        return (
            <div style={{height: "100%"}}>
                <GlobalErr errContent={t("unPreview")}/>
            </div>
        )
    }, []);

    return (renderUnPreview);
};

export default React.memo(UnPreview);